#define _CRT_SECURE_NO_WARNINGS 1

#include "List.h"

void Test()
{
	ListNode* head = ListCreate();
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	ListPushBack(head, 5);
	ListPushBack(head, 6);

	//ListPopBack(head);
	/*ListPushFront(head, 0);
	ListPopFront(head);*/

	ListInsert(head->_next, 0);
	ListPrint(head);

	/*ListNode* plist=ListFind(head, 3);
	if (plist)
	{
		printf("[%p|%d|%p]\n", plist->_prev, plist->_data, plist->_next);
	}
	ListNode* plist2 = ListFind(head, 9);*/

	printf("%d\n", ListSize(head));
	ListDestory(head);

}

int main()
{
	Test();
	return 0;
}